package com.bafa.front.postlogon;

import com.bafa.exceptions.ErrorException;
import com.bafa.objects.Message;
import com.bafa.objects.User;
import com.bafa.services.LogonServices;
import com.bafa.services.ReportServices;
import com.bafa.services.teams.TeamServices;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class AddArticleServlet extends PostLogonServlet {

    @Override
    public void doPostLogonEvent(HttpServletRequest request, 
                                 HttpServletResponse response) throws ServletException, 
                                                                      IOException, 
                                                                      ErrorException {
        message = new Message();
        HttpSession session = request.getSession();
        ReportServices.addGeneralArticle(request.getParameter("id"),
        request.getParameter("author"),
        request.getParameter("report"),
        request.getParameter("title"),
        request.getParameter("category")       
        );


    }
}
